<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/index.css?v=1.0.0">
		<div class="fui-page order_detail">
			<div class="fui-header">
		        <div class="fui-header-left">
		            <a class="back" id="btn-back"></a>
		        </div>
		        <div class="title">
		        	核销类型商品核销
		        </div>
		        <div class="fui-header-right"></div>
		    </div>
			<div class="fui-content navbar">
				<div class="fui-list-group notop">
					<div class="fui-list_title"><i class="icon icon-dianpu" style="margin-right: 0.25rem;">{{pagedata.shopset.title}}</i></div>
					<div class="fui-list">
						<div class="fui-list-media">
							<img ng-src="{{tomedia(pagedata.item.image)}}"/>
						</div>
						<div class="fui-list-inner">
							<div class="title">{{pagedata.item.title}} <i ng-if="pagedata.item.selespename" class="fui-tag fui-tag-red">{{pagedata.item.selespename}}</i></div>
							<div class="subtitle">{{pagedata.item.subtitle}}</div>
						</div>
						<div class="fui-list-angle">
							<div></div>
							<div class="num"></div>
						</div>
					</div>
				</div>
	    		<div class="fui-cell-group">
	    			<div class="fui-cell">
	                    <div class="fui-cell-label">
	                    	核销人
	                    </div>
	                    <div class="fui-cell-info">
	                    	
	                    </div>
	                    <div class="fui-cell-remark noremark">
							{{pagedata.saler.name}}
	                    </div>
		    		</div>
		    		<div class="fui-cell">
		    			<div class="fui-cell-label">
	                    	核销门店
	                    </div>
	                    <div class="fui-cell-info">
	                    	
	                    </div>
	                    <div ng-if="pagedata.store" class="fui-cell-remark noremark">
							{{pagedata.store.title}}
	                    </div>
						<div ng-if="!pagedata.store" class="fui-cell-remark noremark">
							{{pagedata.shopset.title}}
	                    </div>
		    		</div>
		    		<div class="fui-cell">
	                    <div class="fui-cell-label">
	                    	核销码
	                    </div>
	                    <div class="fui-cell-info">
	                    	
	                    </div>
	                    <div class="fui-cell-remark noremark">
							{{pagedata.post.verifycode}}
	                    </div>
		    		</div>
		    		<div class="fui-cell">
		    			<div class="fui-cell-label">
	                    	有效期
	                    </div>
	                    <div class="fui-cell-info">
	                    	
	                    </div>
	                    <div class="fui-cell-remark noremark">
							{{pagedata.termofvalidity}}
	                    </div>
		    		</div>
		    		<div class="fui-cell">
		    			<div class="fui-cell-label"style="width: 2.2rem;margin-top: -1rem;">
	                    	备注
	                    </div>
	                    <div class="fui-cell-info">
	                    	<textarea name="remarks" ng-model="pagedata.post.remarks" id='remarks'  rows="2" cols="" placeholder="请输入备注信息"></textarea>
	                    </div>
		    		</div>
				</div>
				
				<div class="fui-cell-group">
	    			<div class="fui-cell">
	    				<div class="fui-cell-label">
	    					使用次数
	    				</div>
	                    <div class="fui-cell-info" style="text-align: right;padding-right: 0.5rem;">
	                    	<span ng-if="pagedata.item.limitnum>0" class="text-danger">剩余次数:{{pagedata.lastverifys}}</span>
	                    	<span ng-if="pagedata.item.limitnum==0" class="text-danger">剩余次数:不限</span>
	                    </div>
	                    <div class="fui-cell-remark noremark">
							<div class="fui-number">
								<div ng-click="pagedata.minus()" class="minus">-</div>
								<input class="num shownum" type="tel" ng-model="pagedata.post.num"/>
								<div ng-click="pagedata.plus()" class="plus ">+</div>
							</div>
						</div>
		    		</div>
				</div>

			</div>
			<div class="fui-footer postbtn" href="javascript:;" ng-click="post(pagedata.post,'post')">
				<span>确认核销</span>
			</div>
		</div>
<script>
//减少
scope.pagedata.minus=function(){
	if(scope.pagedata.post.num<=1){
		return false;
	}
	scope.pagedata.post.num--
	scope.$evalAsync();
}
//增加
scope.pagedata.plus=function(){
	if(scope.pagedata.post.num>=scope.pagedata.lastverifys){
		return false;
	}
	scope.pagedata.post.num++
	scope.$evalAsync();
}
</script>